package com.SH.service.impl;

import com.SH.mapper.CategoryMapper;
import com.SH.pojo.Category;
import com.SH.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Project:
 * @CreateDate: Created in 2020/3/10 00:30
 * @Author: YXH
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> allCategory() {
        List<Category> list = categoryMapper.allCategory();
        return list;
    }
}
